package cn.designmode.adapter;

public class BookAdaptee implements Adaptee {

    @Override
    public Media specificRequest(Object o) {
        Book book = (Book) o;
        Media media = new Media();
        media.setName(book.getTitle());
        media.setCreator(book.getAuthor());
        media.setReleaseDate("");
        return media;
    }

}
